<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="form1.css">
    <title>form使用</title>
</head>
<body>
<form id="fm1">

<fieldset>
    <legend>日期与时间类型输入框</legend>
    <input type="date" name="text_data1" class="ipt1">
    <input type="time" name="text_data2" class="ipt1">
</fieldset>

<fieldset>
    <legend>月份与星期输入框</legend>
    <input type="month" name="text_data3" class="ipt1">
    <input type="week" name="text_data4" class="ipt1">
</fieldset>


<fieldset>
    <legend>日期时间型输入框</legend>
    <input type="datatime" name="text_data5" class="ipt1">
    <input type="datatime-local" name="text_data6" class="ipt1">
</fieldset>
</form>
</body>
</html>